<!DOCTYPE html>
<!--HTML5 doctype-->
<html>

<head>

  <title>App Framework Kitchen Sink</title>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui">
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />

  <link rel="stylesheet" type="text/css" href="css/jsmo/af.ui.css" />
  <link rel="stylesheet" type="text/css" href="css/jsmo/icons.css" />
  <link rel="stylesheet" type="text/css" href="css/pro.css" />

  <script type="text/javascript" charset="utf-8" src="js/jsmo/jquery-2.1.4.js"></script>
  <script type="text/javascript" charset="utf-8" src="js/jsmo/fastclick.js"></script>
  <script type="text/javascript" charset="utf-8" src="js/jsmo/appframework.ui.js"></script>
  <script type="text/javascript" charset="utf-8" src="js/parking.js"></script>
  <script type="text/javascript" charset="utf-8" src="js/settings.js"></script>

  <script>

    //设置
    var condata="true";
    var query = location.search.substring(1); //获取查询串
    var pairs = query.split("&"); //在逗号处断开
    for (var i = 0; i < pairs.length; i++) {
        var pos = pairs[i].indexOf('='); //查找name=value
        if (pos == -1) continue; //如果没有找到就跳过
        var argname = pairs[i].substring(0, pos); //提取name
        //var value = pairs[i].substring(pos + 1); //提取value
        if(argname=="data"){
          condata=pairs[i].substring(pos + 1);
        }
    }

    $.afui.useOSThemes=false;
    $.afui.loadDefaultHash=true;
    $.afui.autoLaunch=false;

    //check search
    var search=document.location.search.toLowerCase().replace("?","");
    if(search.length>0)
    {

       $.afui.useOSThemes=true;
        if(search=="win8")
            $.os.ie=true;
        else if(search=="firefox")
            $.os.fennec="true"
        $.afui.ready(function(){
            $(document.body).get(0).className=(search);
        });
    }

    if(condata=="false"){
      $(document).ready(function(){
          $("#splashscreen").remove();
      });
    }

    $(document).ready(function(){
      setTimeout(function(){
        $.afui.manageHistory=false;
        $.afui.launch();

      },500);
    });
    //if($.os.ios)
        $.afui.animateHeader(true);


    </script>
</head>
<body>

  <div id="splashscreen" class='ui-loader'>
    <section id="pl" class="park-takeover-minimulti park-size">
      <i class="park-size-image" data-size-image-fixed="true" data-size-image-fade="true" data-size-min-opacity=".3" style="opacity: 1.05;">
      </i>
    </section>
    <!--<img src='img/loginpage.png' class="loginlogo" alt="悠悠泊车" />-->
  </div>

  <div class="view active" id="mainview">

      <div class="pages">

         <!--Tab View Pages-->
        <div class="panel" id="main" data-include="views/parking.html" ></div>

        <div class="panel" id="findparking" data-include="views/findparking.html" ></div>

      </div>

      <footer id="mainfooter">
          <a href="#main" class="icon home" id="tab1" >我要停车</a>
          <a href="#findparking" class="icon heart" id="tab2">找车位</a>
      </footer>

      <nav id="leftMenu" style="z-index:5" class="nwidth" data-include="views/personal.html">

      </nav>
  </div>
</body>
</html>
